/*
 * @Description: 秋
 * @Author: hwh
 * @Date: 2024-09-13 10:46:00
 * @LastEditors: hwh
 * @LastEditTime: 2024-09-24 15:24:03
 */
public class Dog extends Animal{
    //�̳и���Animal
    //Animal private name;˽�����Բ�����ֱ�Ӳ�����
    //animal public int num ����ֱ�Ӳ���
    //�̳�ֻ�ܵ��̳� ���̳�
    //extends ����ֻ��дһ����
    private String color;
    public void setColor(String color){
        this.color=color;
    }
    public String getColor(){
        return color;
    }
    public void sayHello(){
        //System.out.println("name: "+name);
        System.out.println("�̳�name: "+getName());//����˽������ ����ͨ����˽�з�������
        System.out.println("�̳�num: "+num);
        System.out.println("����color: "+color);
    }

}